// 商品相关接口
import http from "../common/http.js";

export default {
  /**
   * @des 分类列表
   */
  categoryList: (data, needLoading) => {
    return http.GET("/video-goods/cat-list", data, needLoading);
  },

  /**
   * @des 作品列表
   */
  videoGoodsList: (data, needLoading) => {
    return http.GET("/video-goods/list", data, needLoading);
  },

  /**
   * @des 作品详情
   */
  videoGoodsDetail: (data, needLoading) => {
    return http.GET("/video-goods/detail", data, needLoading);
  },

  /**
   * @des 作品评论列表
   */
  videoGoodsCommentList: (data, needLoading) => {
    return http.GET("/video-goods/comment-list", data, needLoading);
  },

  /**
   * @des 提交评论
   */
  videoGoodsSubmitComment: (data, needLoading) => {
    return http.POST("/video-goods/submit-comment", data, needLoading);
  },

  /**
   * @des 作者申请
   */
  videoGoodsAuthorApply: (data, needLoading) => {
    return http.POST("/video-goods/author-apply", data, needLoading);
  },

  /**
   * @des 获取验证
   */
  videoAuditApplyConfig: (data, needLoading) => {
    return http.POST("/video-goods/audit-apply-config", data, needLoading);
  },

  /**
   * @des 可选择商品列表
   */
  videoGoodsGoodsList: (data, needLoading) => {
    return http.GET("/video-goods/goods-list", data, needLoading);
  },

  /**
   * @des 点赞收藏转发接口
   */
  videoGoodsVote: (data, needLoading) => {
    return http.POST("/video-goods/vote", data, needLoading);
  },

  /**
   * @des 取消点赞收藏
   */
  videoGoodsCancelVote: (data, needLoading) => {
    return http.POST("/video-goods/cancel-vote", data, needLoading);
  },

  /**
   * @des 提交抖品
   */
  videoGoodsSubmit: (data, needLoading) => {
    return http.POSTJSON("/video-goods/submit", data, needLoading);
  },

  /**
   * @des 提交举报
   */
  videoGoodsReport: (data, needLoading) => {
    return http.POST("/video-goods/report", data, needLoading);
  },

  /**
   * @des 抖品个人中心
   */
  videoGoodsUserIndex: (data, needLoading) => {
    return http.GET("/video-goods/user-index", data, needLoading);
  },

  /**
   * @des 用户作品列表
   */
  videoGoodsUserVideoList: (data, needLoading) => {
    return http.GET("/video-goods/user-video-list", data, needLoading);
  },

  /**
   * @des 用户关注的用户列表
   */
  videoGoodsFocusList: (data, needLoading) => {
    return http.GET("/video-goods/focus-list", data, needLoading);
  },

  /**
   * @des 用户粉丝列表
   */
  videoGoodsFansList: (data, needLoading) => {
    return http.GET("/video-goods/fans-list", data, needLoading);
  },

  /**
   * @des 关注用户
   */
  videoGoodsFocus: (data, needLoading) => {
    return http.POST("/video-goods/focus", data, needLoading);
  },

  /**
   * @des 取消关注
   */
  videoGoodsCancelFocus: (data, needLoading) => {
    return http.POST("/video-goods/cancel-focus", data, needLoading);
  },

  /**
   * @des 用户评论点赞
   */
  videoGoodsCommentlike: (data, needLoading) => {
    return http.POST("/video-goods/comment-like", data, needLoading);
  },

  /**
   * @des 用户置顶
   */
  videoGoodsChangeTop: (data, needLoading) => {
    return http.POST("/video-goods/change-top", data, needLoading);
  },

  /**
   * @des 用户删除自己作品
   */
  videoGoodsUserDelete: (data, needLoading) => {
    return http.POST("/video-goods/user-delete", data, needLoading);
  },

  /**
   * @des 海报接口
   */
  videoGoodsQrcode: (data, needLoading) => {
    return http.GET("/video-goods/qrcode", data, needLoading);
  },

  uploadBase64: (data, needLoading) => {
    return http.POST("/upload/upload-base64", data, needLoading);
  },

  videoAnalyze: (data, needLoading) => {
    return http.POST("/video-goods/video-analyze", data, needLoading);
  },
};
